.title_wrapper
  %h2
    Utilities: Bundles
  = link_to 'Create Bundle', new_bundle_path

%h3
  All Bundles

.table_view   
  
  %table
    %tr
      %th
        No.
      %th
        Name
      %th
        No. of Publications
      %th
        Status
      %th
        Created at
      %th
        Updated at
      %th{ :colspan => "3" }  
        Actions
      - @bundles.each do |bundles|
        %tr
          %td
            = h bundles.id
          %td
            = link_to bundles.name, bundles
          %td
            = h bundles.publications.count
          %td
            = h bundles.status
          %td
            = h bundles.created_at.strftime("%b. %d, %Y %H:%M")
          %td
            = h bundles.updated_at.strftime("%b. %d, %Y %H:%M")
          %td
            = link_to 'Details', bundles
          %td
            = link_to 'Edit', edit_bundle_path(bundles)
          %td
            = link_to 'Delete', bundles, :confirm => 'Are you sure?', :method => :delete
    %tr.paginator
      %td{:colspan => 9}
        = will_paginate @bundles
      